package com.example.lexiangbackend.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;

public class CategoryRequest {
    
    @NotBlank(message = "分类名称不能为空")
    @Size(max = 50, message = "分类名称长度不能超过50字符")
    private String name;
    
    @Size(max = 200, message = "分类描述长度不能超过200字符")
    private String description;
    
    @NotBlank(message = "颜色不能为空")
    private String color;
    
    private String gradient;
    
    private String icon;
    
    private Integer sortOrder;
    
    private Integer status;
    
    // 构造函数
    public CategoryRequest() {}
    
    public CategoryRequest(String name, String description, String color, String gradient, String icon, Integer sortOrder, Integer status) {
        this.name = name;
        this.description = description;
        this.color = color;
        this.gradient = gradient;
        this.icon = icon;
        this.sortOrder = sortOrder;
        this.status = status;
    }
    
    // Getter和Setter方法
    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    public String getDescription() {
        return description;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }
    
    public String getColor() {
        return color;
    }
    
    public void setColor(String color) {
        this.color = color;
    }
    
    public String getGradient() {
        return gradient;
    }
    
    public void setGradient(String gradient) {
        this.gradient = gradient;
    }
    
    public String getIcon() {
        return icon;
    }
    
    public void setIcon(String icon) {
        this.icon = icon;
    }
    
    public Integer getSortOrder() {
        return sortOrder;
    }
    
    public void setSortOrder(Integer sortOrder) {
        this.sortOrder = sortOrder;
    }
    
    public Integer getStatus() {
        return status;
    }
    
    public void setStatus(Integer status) {
        this.status = status;
    }
} 